package cn.itcast.domain.cargo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhou
 * @since 2021-01-30
 */
@TableName("co_finance")
public class Finance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 财务报运单ID  一个发票对应一个财务报运单
     */
    @TableId(value = "finance_id", type = IdType.ASSIGN_UUID)
    private String financeId;

    /**
     * 制单时间  页面选择
     */
    private Date inputDate;

    /**
     * 发票号  从发票中选择
     */
    private String invoiceId;

    /**
     * 发票金额  选择发票时候从发票中自动带过来
     */
    private BigDecimal invoiceMoney;

    /**
     * 发票时间
     */
    private Date invoiceTime;

    /**
     * 报运合同号  数据来源于装箱表
     */
    private String exportNos;

    /**
     * 装运港  数据来源于报运单表
     */
    private String shipmentPort;

    /**
     * 目的港  数据来源于报运单表
     */
    private String destinationPort;

    /**
     * 收货人  数据来源于报运单表
     */
    private String consignee;

    private String companyId;

    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getFinanceId() {
        return financeId;
    }

    public void setFinanceId(String financeId) {
        this.financeId = financeId;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public BigDecimal getInvoiceMoney() {
        return invoiceMoney;
    }

    public void setInvoiceMoney(BigDecimal invoiceMoney) {
        this.invoiceMoney = invoiceMoney;
    }

    public String getExportNos() {
        return exportNos;
    }

    public void setExportNos(String exportNos) {
        this.exportNos = exportNos;
    }

    public String getShipmentPort() {
        return shipmentPort;
    }

    public void setShipmentPort(String shipmentPort) {
        this.shipmentPort = shipmentPort;
    }

    public String getDestinationPort() {
        return destinationPort;
    }

    public void setDestinationPort(String destinationPort) {
        this.destinationPort = destinationPort;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public Date getInputDate() {
        return inputDate;
    }

    public void setInputDate(Date inputDate) {
        this.inputDate = inputDate;
    }

    public Date getInvoiceTime() {
        return invoiceTime;
    }

    public void setInvoiceTime(Date invoiceTime) {
        this.invoiceTime = invoiceTime;
    }

    @Override
    public String toString() {
        return "Finance{" +
                "financeId='" + financeId + '\'' +
                ", inputDate=" + inputDate +
                ", invoiceId='" + invoiceId + '\'' +
                ", invoiceMoney=" + invoiceMoney +
                ", invoiceTime=" + invoiceTime +
                ", exportNos='" + exportNos + '\'' +
                ", shipmentPort='" + shipmentPort + '\'' +
                ", destinationPort='" + destinationPort + '\'' +
                ", consignee='" + consignee + '\'' +
                ", companyId='" + companyId + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
